package com.iv.durian.cloud.dao.mapper;

import com.iv.durian.cloud.Student;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface StudentMapper {

    Student get(@Param("id") Integer id, @Param("userId") Integer userId, @Param("name") String name, @Param("birthday") Date birthday);

    int add(@Param("student") Student student);

    int update(@Param("student") Student student);

    int remove(@Param("id") Integer id);

    List<Student> list(@Param("id") Integer id, @Param("offset") int offset, @Param("limit") int limit);

    int count(@Param("id") Integer id);

}
